package com.efast.dmom.mgmt.controller.mes;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.service.mes.PmPrintConfigService;

@Controller
@RequestMapping("/printConfig")
public class PmPrintConfigController {
	@Autowired
	private PmPrintConfigService printService;
	
	@RequestMapping(value="/printTemplate")
	public @ResponseBody ResultBean getAllPrintTemplate() {
		
		return printService.getAllPrintTemplate();
	}
	
	@RequestMapping(value="/printer")
	public @ResponseBody ResultBean getAllPrinter() {
		
		return printService.getAllPrinter();
	}
}
